﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Dukous.Search.ISearchResult>" %>
<%@ Import Namespace="Celine.Domain.Customers" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Search</title>
</head>
<body>
    <% if (Model != null)
       { %>

<table>
    <%
        IList<Customer> customers = Model.UnderlayerItems.OfType<Customer>().ToList();
        foreach (var item in customers)
        { %>
<tr><td><%= item.Id %></td><td><%= item.Name %></td><td><%= item.BirthDate %></td></tr>
    <% 
        } %>
</table>
      
    <% } %>
    <% using (Html.BeginForm()) 
       { %>
        <%= Html.Label("创建时间") %><%= Html.TextBox("q.CreateTime.min") %>
        <%= Html.Label("到") %><%= Html.TextBox("CreateTime.max") %>
        <%= Html.Label("序列号") %><%= Html.TextBox("q.SerialNumber") %>
        <input type="submit" value="提交" />
    <%
       } %>
</body>
</html>
